//
//  NormalTableViewCell.m
//  GoldBook
//
//  Created by wmz on 2021/8/18.
//  Copyright © 2021 wmz. All rights reserved.
//

#import "NormalTableViewCell.h"

@implementation NormalTableViewCell

- (void)hd_setupViews{
    @HDWeakify(self)
    self.detailBTN.add_event(^(UIView * _Nonnull sender) {
        @HDStrongify(self)
        !self.model.block?:self.model.block(@"detail");
    });
}

- (void)setGNModel:(BaseCellModel*)data{
    self.model = data;
    self.nameLB.add_text(GNFillEmpty(data.title))
    .add_font(data.titleFont)
    .add_textColor(data.titleColor);
    
    self.detailBTN.add_title(GNFillEmpty(data.detail))
    .add_font(data.detailFont)
    .add_titleColor(data.detailColor);
}
@end
